package com.cdtu.store.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cdtu.store.common.entity.CategoryEntity;
import com.cdtu.store.common.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * 商品类目表，类目和商品(spu)是一对多关系，类目与品牌是多对多关系
 *
 * @author dongyuhao
 * @date 2020-06-22 23:46:27
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);


    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    void updateCasecade(CategoryEntity category);

    List<String> queryNamesByIds(List<Long> ids);

    List<CategoryEntity> queryAllByCid3(Long id);
}

